<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
        <input id="Hidden1" type="hidden" name="Hidden1" runat="server" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px">
        <input onclick="searchvalue();" type="button" value="Open" id="Button1" name="Button1" style="Z-INDEX: 102; LEFT: 96px; POSITION: absolute; TOP: 144px">
        <input  onclick ="search2();" type="button" value="Open by Saucer" style="Z-INDEX: 103; LEFT: 216px; POSITION: absolute; TOP: 144px">
    </form>
    <form id="form2" method="post" target="_blank">
         <input type="hidden" name="query">
    </form>

    <script language="javascript" charset="gb2312">
        function searchvalue(){
            var sql="select * from companyjob";
            SetCookie("SendSql",sql);
            var url="child.aspx";
            window.open(url,'_blank');
        }
        function SetCookie(name, value) {
            document.cookie = name + "=" + value;
        }
        function search2() {
            var sql="select * from companyjob";
            document.all.form2.query.value=sql;
            document.all.form2.action="child.aspx";
            document.all.form2.submit();
        }
    </script>
</body>
</html>